package com.wyy.springbootgraphql.beans;

import lombok.Data;

import java.util.List;

@Data
public class Post {
    private String postId;
    private String title ;
    private String text;
    private List<Comments> comments;

    private boolean flag;

    public Post() {

    }

    public Post(String postId, String title, String text) {
        this.postId = postId;
        this.title = title;
        this.text = text;
    }


}
